Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / Application-Defined Functions
/


MyShowDocument

Displays the contents of a URL passed back by an instantiated applet. This is how you would define your output function if you were to name it MyShowDocument:

void MyShowDocument (JMAppletViewerRef viewer, 
                     const JMTextRef urlString, 
                     const JMTextRef windowName);
viewer
The current applet.
urlString
A text object containing the URL passed by the applet.
windowName
A text object describing the type of window to display the URL contents.
DISCUSSION
When calling JMNewAppletViewer, you must designate this function in the applet callbacks structure.

The session passes one of the strings in Table 2-1 in the WindowName parameter, and your application should display the URL contents accordingly.

Table 2-1 Window strings passed to MyShowDocument
StringAction
_selfShow contents in the current frame
_parentShow contents in the parent frame
_topShow contents in the top-most (that is, front-most) frame
_blankShow contents in a new unnamed window
frameNameShow contents in a new window named frameName

SEE ALSO
The JMNewAppletViewer function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997